package com.code2roc.fastboot.workflow.config;

import com.code2roc.miniflow.app.IMiniFlowDataBaseBridge;
import com.code2roc.miniflow.app.MiniFlowApplication;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
public class WorkFlowConfig {
    @Autowired
    private IMiniFlowDataBaseBridge dataBaseBridge;

    @PostConstruct
    public void init(){
        MiniFlowApplication.init(dataBaseBridge,"com.code2roc.fastboot");
    }
}
